package objects.predictors;

import objects.ObjectCodes;
import objects.shared.JobStatusData;

import com.google.gson.Gson;


public class AttrInfo implements ObjectCodes{
	public String jobId;
	public int low_bound;
	public double mean;
	public double std_dev;
	public int cluster;
	
	public AttrInfo()
	{
		this.low_bound = Integer.MAX_VALUE;
		this.mean = Double.MAX_VALUE;
		this.std_dev = 0;
		this.cluster = -1;
	}
	public AttrInfo(int l,double m,double s,int c)
	{
		this.low_bound = l;
		this.mean = m;
		this.std_dev =s;
		this.cluster = c;
	}
	public int getCluster() { return cluster;}
	
	public void print()
	{
		System.out.println("low: "+low_bound+" mean: "+(int)mean+" std_dev: "+std_dev);
	}
	public String toString()
	{
		return ATTR_INFO+"|"+ new Gson().toJson(this);
	}
	public static AttrInfo fromJSon(String json)
	{
		return new Gson().fromJson(json,AttrInfo .class);
	}
	
	
	
}
